

//
//  YRBottonView.swift
//  YR 微博
//
//  Created by cyr on 15/10/17.
//  Copyright © 2015年 cyr. All rights reserved.
//

import UIKit

class YRBottonView: UIView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    /**
    *  设置界面
    */
    private func setupUI() {
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
        
        addSubview(forwardBotton)
        addSubview(commentBotton)
        addSubview(likeBotton)
        
        // 设置布局
        ff_HorizontalTile([forwardBotton,commentBotton,likeBotton], insets: UIEdgeInsetsZero)
    }
    
    
    /**
    *  懒加载控件
    */
    private lazy var forwardBotton: UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet")
    private lazy var commentBotton: UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment")
    private lazy var likeBotton: UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike")
    
    
    
}